]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Always set the FDO notification closed reason
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 9 Oct 2025 11:56:27 +0000 (13:56 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 9 Oct 2025 13:08:10 +0000 (13:08 +0000)
The undefined closed reason according to the API is 4, but we were
potentially returning an unsupported value (0).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3907>

js/ui/notificationDaemon.js

index 00a3dbcdbcb96503739222ef10cf95469f81316d..3d9edaceb78e9325feee69a5eb41da6bbc9c2dc1 100644 (file)
@@ -188,6 +188,9 @@ class FdoNotificationDaemon {
                 case MessageTray.NotificationDestroyedReason.SOURCE_CLOSED:
                     notificationClosedReason = NotificationClosedReason.APP_CLOSED;
                     break;
+                default:
+                    notificationClosedReason = NotificationClosedReason.UNDEFINED;
+                    break;
                 }
                 this._emitNotificationClosed(id, notificationClosedReason);
             });